﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/QuizAdmin.Master" AutoEventWireup="true" CodeBehind="EditCategory.aspx.cs" Inherits="BladeTecWebApplication.Admin.EditCategory" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">

        .style2
        {
            width: 106px;
            height: 51px;
        }
        .style4
        {
            height: 51px;
        }
    </style>

	<script type="text/javascript">

		function validate() {
			if (Page_ClientValidate()) {
				$("#divRequired").hide();
			} else {
				$("#divRequired").show();
			}
		}
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <span class="pageTitle">Edit Category</span><br />
    <br />
    <asp:Panel ID="pnlQuestionCategory" runat="server" Width="315px">
        <div style="color: Red; display:none" id="divRequired">
	* Required<br /><br />
	</div>
		<table style="border: 0px none;">
            <tr>
                <td valign="top">
                    Category Name:<asp:RequiredFieldValidator ID="rqName" runat="server" ForeColor="Red" ErrorMessage="*" ControlToValidate="txtCategoryName"></asp:RequiredFieldValidator></td>
                <td style="padding-bottom:10px;">
                    <asp:TextBox ID="txtCategoryName" runat="server" CssClass="stdTextBox" 
        Width="150px" MaxLength="40"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align:right; border-top: 1px solid #666;padding-top:10px;">
                    <asp:Button ID="btnAddCategory" runat="server" onclick="btnAddCategory_Click" OnClientClick="validate();"
                Text="Save" />
                </td>
            </tr>
        </table>
		<asp:HiddenField ID="hflblCatID" runat="server" />
    </asp:Panel>

    
        
   
&nbsp;


    <asp:Panel ID="pnlConfirmationForm" runat="server" Visible="False">
        
	The category was successfully updated.
	<br /><br />
	<a class="dashboardLink" href="ViewCategory.aspx">View Categories</a>

    </asp:Panel>
</asp:Content>
